home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
text_buf.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-10
|
571b
|
27 lines
#ifndef __TEXT_BUFFER_H_
#define __TEXT_BUFFER_H_
#include "simple.h"
#include "geom.h"
#include <alloc.h>
#define PAGE_WIDTH 80
#define PAGE_HEIGHT 60
/* We build 60 x 80 page in memory and print to it information of
different types. It is text mode printing.
*/
struct TextPage
{
uchar** page; // Work area in memory: uchar[80][60]
TextPage();
~TextPage();
int putText(loc pos, uchar* txt); // Return 0 or curr. pos. of Y overflow
int draw_bar(rect r, char c = '*');
};
#endif __TEXT_BUFFER_H_